/**
 * 获取表单的对象格式数据
 * @returns {object}
 */
$.fn.serializeObject = function () {
  let arr = this.serializeArray();
  return arr.reduce((pre, cur) => {
    pre[cur.name] = cur.value;
    return pre;
  }, {});
};
